Skip to content

Documentation site - Composable for Python (mkdocs-material, engine theme) + CI workflow - #20

Merged
acn-ericlaw merged 1 commit into
mainfrom
feature/docs-site
Aug 24, 2026
Merged

Documentation site - Composable for Python (mkdocs-material, engine theme) + CI workflow#20
acn-ericlaw merged 1 commit into
mainfrom
feature/docs-site

Conversation

@acn-ericlaw

Copy link
Copy Markdown
Collaborator

What

The P4 documentation site for the Python wrapper, plus the repo's fresh CI workflow:

  • mkdocs-material site "Composable for Python" on the exact theme of the
    mercury-composable engine repo (deep purple/cyan palettes with auto/light/dark,
    navigation tabs, mermaid diagrams, strict validation, the same css/extra.css) —
    publishing to https://accenture.github.io/mercury-python/
  • 13 pages in the engine's house structure (Overview → hands-on → reference → AI):
    • Home — the three-layer theme reference (Platform Core → Event Script →
      Knowledge Graph) and where a Python function joins it
    • Orientation — getting started; the rationale chapter (why Event-over-HTTP
      wrappers, why sync and async handlers: requests/NumPy vs asyncio)
    • Foundations — the design chapter (scope fence, envelope contract, the primitive
      event bus, the sync bridge)
    • Write functions — function patterns, config/logging/actuators, testing
    • Join the engines — Event Script flows and MiniGraph knowledge graphs
      (yaml.event.over.http; notes the graph.task declarative-target floor of
      engine v4.11.11)
    • AI — a one-page AI agent guide ("generate a correct function from this page
      alone") plus llms.txt as the machine map
    • Reference — configuration keys and the complete HTTP surface
  • .github/workflows/ci.yml — the rebooted repo had no CI: quality gates
    (pytest, ruff, basedpyright on the python 3.10 floor) on every push/PR, a strict
    docs build check, and mkdocs gh-deploy on main pushes
  • CHANGELOG entry, README documentation links, .gitignore +site/

Why

P4 of the polyglot initiative — documentation for AI and Human. Every page follows the
two-audience doctrine: storytelling with why-before-how for humans, and token-efficient
machine-greppable content for AI agents. Using the engine repo's theme verbatim keeps a
polyglot installation's documentation visually and structurally uniform across
accenture.github.io/mercury-composable, /mercury-python and /mercury-nodejs.

Gates: pytest 57/57, ruff clean, basedpyright 0 errors, mkdocs build --strict exit 0.

Post-merge: enable GitHub Pages (branch gh-pages) after the first deploy run, and
spot-check mermaid rendering on the live site.

🤖 Generated with Claude Code

Co-Authored-By: Claude Code noreply@anthropic.com

…gine theme)

The P4 docs chapter for the python wrapper: three-layer theme reference
(index), rationale + design foundations, function-writing patterns,
configuration/logging/actuators, testing, the Event Script and Knowledge
Graph join chapters, a one-page AI agent guide + llms.txt (the
two-audience criteria: storytelling for humans, token-efficient grammar
for AI), and configuration/HTTP-surface references. Same Material theme,
palette, extensions and strict validation as the engine site. New ci.yml
runs the three quality gates plus the strict docs build and publishes
gh-pages on main - closing the wrapper-CI gap.

Co-Authored-By: Claude Code <noreply@anthropic.com>
@acn-ericlaw
acn-ericlaw merged commit 0bc97f7 into main Aug 24, 2026
5 checks passed
@acn-ericlaw
acn-ericlaw deleted the feature/docs-site branch August 24, 2026 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant